<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  <meta name="description" content="刘清政">
  <meta name="keyword" content="hexo-theme">
  
    <link rel="shortcut icon" href="/css/images/logo.png">
  
  <title>
    
      Justin-刘清政的博客
    
  </title>
  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/tomorrow.min.css" rel="stylesheet">
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/css/plugins/gitment.css">

  
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
  
    
<script src="/js/qrious.js"></script>

  
  
    
<script src="/js/gitment.js"></script>

  
  

  
<meta name="generator" content="Hexo 4.2.0"></head>
<div class="wechat-share">
  <img src="/css/images/logo.png" />
</div>

  <body>
    <header class="header fixed-header">
  <div class="header-container">
    <a class="home-link" href="/">
      <div class="logo"></div>
      <span>Justin-刘清政的博客</span>
    </a>
    <ul class="right-list">
      
        <li class="list-item">
          
            <a href="/" class="item-link active">主页</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/tags/" class="item-link">标签</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/archives/" class="item-link">归档</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/about/" class="item-link">关于我</a>
          
        </li>
      
    </ul>
    <div class="menu">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </div>
    <div class="menu-mask">
      <ul class="menu-list">
        
          <li class="menu-item">
            
              <a href="/" class="menu-link mobile-active">主页</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/tags/" class="menu-link">标签</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/archives/" class="menu-link">归档</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/about/" class="menu-link">关于我</a>
            
          </li>
        
      </ul>
    </div>
  </div>
</header>

    <main class="app-body">
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/linux/Docker/6-Docker%E4%B9%8B%E7%BD%91%E7%BB%9C/">6-Docker之网络</a>
      </h2>
      <p class="article-date">2019年3月28日</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          一 Docker 网络管理简介1.1 为什么要Docker网络管理
容器的网络默认与宿主机、与其他容器都是相互隔离。
​    •容器中可以运行一些网络应用(如nginx、web应用、数据库等)，如果要让外部也可以访问这些容器内运行的网络应用，那么就需要配置网络来实现。
​    •有可能有 ...
        
      </div>
      <a class="more" href="/linux/Docker/6-Docker%E4%B9%8B%E7%BD%91%E7%BB%9C/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/linux/Docker/1-Docker%E4%B9%8B%E4%BB%8B%E7%BB%8D/">1-Docker介绍与安装</a>
      </h2>
      <p class="article-date">2019年3月28日</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          1 Docker 简介1.1 简介Docker是开发，运行和部署应用程序的开放管理平台。

开发人员能利用docker 开发和运行应用程序运维人员能利用docker 部署和管理应用程序


1.2 Docker平台介绍
Docker提供了在一个完全隔离的环境中打包和运行应用程序的能力，这个隔 ...
        
      </div>
      <a class="more" href="/linux/Docker/1-Docker%E4%B9%8B%E4%BB%8B%E7%BB%8D/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/linux/Docker/5-Docker%E4%B9%8B%E5%AE%B9%E5%99%A8%E4%B8%8E%E9%95%9C%E5%83%8F/">5-Docker之容器与镜像</a>
      </h2>
      <p class="article-date">2019年3月28日</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          一 Docker的容器与镜像1.1 容器与镜像的关系

1.2 容器提交 – docker commit12345678910111213141516# 作用：	根据容器生成一个新的镜像# 命令格式：	docker commit [OPTIONS] CONTAINER [REPOSITORY ...
        
      </div>
      <a class="more" href="/linux/Docker/5-Docker%E4%B9%8B%E5%AE%B9%E5%99%A8%E4%B8%8E%E9%95%9C%E5%83%8F/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/linux/Docker/9-Docker%E4%B9%8BDockerfile/">9-Docker之Dockerfile</a>
      </h2>
      <p class="article-date">2019年3月28日</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          一 Dockerfile 简介
•Dockerfile其实就是根据特定的语法格式撰写出来的一个普通的文本文件
•利用docker build命令依次执行在Dockerfile中定义的一系列命令，最终生成一个新的镜像（定制镜像）

二 Dockerfile 示例与使用2.1 Dockerfil ...
        
      </div>
      <a class="more" href="/linux/Docker/9-Docker%E4%B9%8BDockerfile/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/05-Go%E8%AF%AD%E8%A8%80%E4%B9%8BKafka:Rabbitmq/">Go语言之Kafka/Rabbitmq</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          
        
      </div>
      <a class="more" href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/05-Go%E8%AF%AD%E8%A8%80%E4%B9%8BKafka:Rabbitmq/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/04-Go%E8%AF%AD%E8%A8%80%E4%B9%8BMongodb%E6%93%8D%E4%BD%9C/">Go语言之Mongodb操作</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          
        
      </div>
      <a class="more" href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/04-Go%E8%AF%AD%E8%A8%80%E4%B9%8BMongodb%E6%93%8D%E4%BD%9C/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/02-Go%E8%AF%AD%E8%A8%80%E4%B9%8BMysql%E6%93%8D%E4%BD%9C/">Go语言之Mysql操作</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          
        
      </div>
      <a class="more" href="/go/5-Go%E8%AF%AD%E8%A8%80%E8%BF%9B%E9%98%B6/02-Go%E8%AF%AD%E8%A8%80%E4%B9%8BMysql%E6%93%8D%E4%BD%9C/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/2-Go%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80/29-Defer/">29-Defer</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          什么是 defer？defer 语句的用途是：含有 defer 语句的函数，会在该函数将要返回之前，调用另一个函数。这个定义可能看起来很复杂，我们通过一个示例就很容易明白了。
示例1234567891011121314151617181920212223242526package maini ...
        
      </div>
      <a class="more" href="/go/2-Go%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80/29-Defer/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/2-Go%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80/02-%E5%91%BD%E5%90%8D%E8%A7%84%E8%8C%83/">02-命名规范</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          一 变量定义规范Go语言中的函数名、变量名、常量名、类型名、语句标号和包名等所有的命名，都遵循一个简单的命名规则：
1 一个名字必须以一个字母（Unicode字母）或下划线开头，后面可以跟任意数量的字母、数字或下划线
2 大写字母和小写字母是不同的：Name和name是两个不同的变量
3 关 ...
        
      </div>
      <a class="more" href="/go/2-Go%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80/02-%E5%91%BD%E5%90%8D%E8%A7%84%E8%8C%83/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/1-%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/03-GoLand%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">03-GoLand环境搭建</a>
      </h2>
      <p class="article-date">2019年3月10日</p>
      
        
  <a href="/tags#Go" >
    <span class="tag-code">Go</span>
  </a>

      
      <div class="article-summary">
        
          一 GoLand集成开发环境下载IDE 下载地址：https://www.jetbrains.com/go/download/#section=mac
IDE安装就是平常的傻瓜式安装，这里就不多说了。
二 使用GoLand1、 双击运行安装完的GoLand，选择创建项目，并关联GOROOT（ ...
        
      </div>
      <a class="more" href="/go/1-%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/03-GoLand%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">详情...</a>
    </article>
  

  
    <div class="guide-pager">
  
    <a href="/page/37/"><span class="page-arrow">← </span>Prev</a>
  
  
    <a href="/page/39/">Next<span class="page-arrow"> →</span></a>
  
</div>
  
</main>


    <div class="scroll-top">
  <span class="arrow-icon"></span>
</div>
    <footer class="app-footer">
<!-- 不蒜子统计 -->
<span id="busuanzi_container_site_pv">
     本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_uv" style='display:none'>
     本站访客数<span id="busuanzi_value_site_uv"></span>人
</span>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>



  <p class="copyright">
    &copy; 2021 | Proudly powered by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank">小猿取经</a>
    <br>
    Theme by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank" rel="noopener">小猿取经</a>
  </p>
</footer>

<script>
  function async(u, c) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<script>
  async("//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", function(){
    FastClick.attach(document.body);
  })
</script>

<script>
  var hasLine = 'true';
  async("//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js", function(){
    $('figure pre').each(function(i, block) {
      var figure = $(this).parents('figure');
      if (hasLine === 'false') {
        figure.find('.gutter').hide();
      }
      var lang = figure.attr('class').split(' ')[1] || 'code';
      var codeHtml = $(this).html();
      var codeTag = document.createElement('code');
      codeTag.className = lang;
      codeTag.innerHTML = codeHtml;
      $(this).attr('class', '').empty().html(codeTag);
      figure.attr('data-lang', lang.toUpperCase());
      hljs.highlightBlock(block);
    });
  })
</script>





<!-- Baidu Tongji -->

<script>
    var _baId = 'c5fd96eee1193585be191f318c3fa725';
    // Originial
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?" + _baId;
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
</script>


<script src="/js/script.js"></script>


<script src="/js/search.js"></script>


<script src="/js/load.js"></script>



  <span class="local-search local-search-google local-search-plugin" style="right: 50px;top: 70px;;position:absolute;z-index:2;">
      <input type="search" placeholder="站内搜索" id="local-search-input" class="local-search-input-cls" style="">
      <div id="local-search-result" class="local-search-result-cls"></div>
  </span>


  </body>
</html>